package org.logic.membershipFunctions;

public class TriangularFunction extends AMembershipFunction{
	
	//private static Logger logger = LoggerFactory.getLogger(MembershipFunctionTest.class);
	
	public TriangularFunction(double min, double max, double middleFactor) {
		
		double distance = max - min;
		
		h = 1;
		x1 = min;
		x4 = max;
		x2 = min + distance*middleFactor;
		x3 = x2;
	}
}
